home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 77 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.5 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: Steve Karmesin <ssr@ccsf.caltech.edu>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: STL still in standard
  5. Date: 19 Jan 1996 10:58:09 PST
  6. Organization: Caltech
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <30FED537.43283C@ccsf.caltech.edu>
  9. References: <4dd7on$djk@rc1.vub.ac.be> <4dgrb4$a2e@engnews1.Eng.Sun.COM> <4dj7eu$2sp@news.ios.com>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: Fri, 19 Jan 1996 10:48:15 +1130
  12. X-Mailer: Mozilla 2.0b5 (X11; I; Linux 1.2.8 i486)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMP/p5ky4NqrwXLNJAQHNPAIAyvb/Lg8CbTyPwZexIfABEsmu5XwjQKEE
  15.     uEq/O+jGUan5YdkyGVaKt06EhtNnsIQtTnEEs/P7tVfThBMQ/PKtsg==
  16.     =0t1/
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. Micha Berger wrote:
  20. ...snip...
  21. > I don't like STL because it represents an abandonment of one of C++'s
  22. > strengths, the tools for implementing an object oriented design.
  23. > STL just isn't OO. It's the creation of algorythms that are not connected
  24. > to the data they act upon. That doesn't make STL inherently wrong, but it
  25. > does seem out of place in light of the number of design decisions made
  26. > to enable OO.
  27. ...snip...
  28.  
  29. First, I will dispute the claim that something like the STL is not OO.
  30. Second, even if it was not that doesn't make it a bad part of C++.
  31.  
  32. The fact that the algorithm of the STL aren't tied to particular data
  33. structures does not mean that it is not OO. A better OO language than C++
  34. would in fact allow the algorithms themselves to be objects. The fact that
  35. they are written as templates rather than classes in C++ is because of
  36. limitations in C++, not limitations in the idea of objects. Object != class.
  37.  
  38. I would say that the STL is a big help in OO design, even if the algorithms
  39. aren't considered to be objects themselves.
  40.  
  41. In any case, C++ is a language for making programs. One of the tools it puts
  42. in the hands of the programmer is objects and some facilities for doing
  43. object oriented design. 
  44.  
  45. The goal is not and should not be to build an object oriented language. The
  46. goal should be to build a language in which people can solve problems. An
  47. object oriented language and object oriented design are ways to do that, but
  48. they are not the only ways. 
  49.  
  50. If what you want is a teaching tool or research tool to explore the limits
  51. of strict object oriented desing, such languages exist but those are not the
  52. goals of C++.
  53.  
  54. Steve K
  55. ---
  56. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  57.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  58.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  59.